package com.ruoyi.human.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.human.mapper.ParticipantHealthMonitoringMapper;
import com.ruoyi.human.domain.ParticipantHealthMonitoring;
import com.ruoyi.human.service.IParticipantHealthMonitoringService;

/**
 * 健康监控Service业务层处理
 * 
 * @author gw
 * @date 2025-01-06
 */
@Service
public class ParticipantHealthMonitoringServiceImpl implements IParticipantHealthMonitoringService 
{
    @Autowired
    private ParticipantHealthMonitoringMapper participantHealthMonitoringMapper;

    /**
     * 查询健康监控
     * 
     * @param monitoringId 健康监控主键
     * @return 健康监控
     */
    @Override
    public ParticipantHealthMonitoring selectParticipantHealthMonitoringByMonitoringId(Long monitoringId)
    {
        return participantHealthMonitoringMapper.selectParticipantHealthMonitoringByMonitoringId(monitoringId);
    }

    /**
     * 查询健康监控列表
     * 
     * @param participantHealthMonitoring 健康监控
     * @return 健康监控
     */
    @Override
    public List<ParticipantHealthMonitoring> selectParticipantHealthMonitoringList(ParticipantHealthMonitoring participantHealthMonitoring)
    {
        return participantHealthMonitoringMapper.selectParticipantHealthMonitoringList(participantHealthMonitoring);
    }

    /**
     * 新增健康监控
     * 
     * @param participantHealthMonitoring 健康监控
     * @return 结果
     */
    @Override
    public int insertParticipantHealthMonitoring(ParticipantHealthMonitoring participantHealthMonitoring)
    {
        return participantHealthMonitoringMapper.insertParticipantHealthMonitoring(participantHealthMonitoring);
    }

    /**
     * 修改健康监控
     * 
     * @param participantHealthMonitoring 健康监控
     * @return 结果
     */
    @Override
    public int updateParticipantHealthMonitoring(ParticipantHealthMonitoring participantHealthMonitoring)
    {
        return participantHealthMonitoringMapper.updateParticipantHealthMonitoring(participantHealthMonitoring);
    }

    /**
     * 批量删除健康监控
     * 
     * @param monitoringIds 需要删除的健康监控主键
     * @return 结果
     */
    @Override
    public int deleteParticipantHealthMonitoringByMonitoringIds(Long[] monitoringIds)
    {
        return participantHealthMonitoringMapper.deleteParticipantHealthMonitoringByMonitoringIds(monitoringIds);
    }

    /**
     * 删除健康监控信息
     * 
     * @param monitoringId 健康监控主键
     * @return 结果
     */
    @Override
    public int deleteParticipantHealthMonitoringByMonitoringId(Long monitoringId)
    {
        return participantHealthMonitoringMapper.deleteParticipantHealthMonitoringByMonitoringId(monitoringId);
    }
}
